package com.ruoyi.qiushi.domain.mall;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 购物车对象 trade_cart
 *
 * @author ruoyi
 * @date 2023-12-29
 */
public class TradeCart extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private String userName;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * member_user.id
     */
    @Excel(name = "member_user.id")
    private Long userId;

    /**
     * 商品id
     */
    @Excel(name = "商品id")
    private Long spuId;

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String spuName;

    /**
     * 图片
     */
    @Excel(name = "图片")
    private String image;

    /**
     * 数量
     */
    @Excel(name = "数量")
    private Long count;

    /**
     * 1.购物车中 2结算中 3已结算
     */
    @Excel(name = "1.购物车中 2结算中 3已结算  ")
    private String status;

    /**
     * qiushi_order.id
     */
    @Excel(name = "qiushi_order.id")
    private Long orderId;

    /**
     * 0正常 1删除
     */
    private String delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setSpuId(Long spuId) {
        this.spuId = spuId;
    }

    public Long getSpuId() {
        return spuId;
    }

    public void setSpuName(String spuName) {
        this.spuName = spuName;
    }

    public String getSpuName() {
        return spuName;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getImage() {
        return image;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    public Long getCount() {
        return count;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("spuId", getSpuId())
                .append("spuName", getSpuName())
                .append("image", getImage())
                .append("count", getCount())
                .append("status", getStatus())
                .append("orderId", getOrderId())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
